package com.api;

import com.alibaba.fastjson.JSONObject;
import com.system.common.Result;

import com.system.security.IsSecurity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @Classname SearchApi
 * @Description TODO
 * @Date 2023/9/28 9:17
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@IsSecurity(isSecurity = false)
@RestController
@RequestMapping("search")
public class SearchApi {

    @GetMapping()
    public JSONObject search(@RequestParam(value = "pageNum",defaultValue = "1")Integer pageNum,
                             @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize,
                             @RequestParam(value = "keyword",required = false)String keyword) throws Exception {
        //Map<String, Object> map= LuceneUtils.searchNotes(pageNum,pageSize,keyword);
        return Result.successInfo("");
    }
}
